package com.itheima.reggie.entity.dto;

import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.entity.SetmealDish;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Setmeal的子类，添加setmealDishes等属性
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SetmealDTO extends Setmeal {
    /**
     * 套餐详情
     *
     * 一个套餐包含多个套餐详情 SetmealDish
     */
    private List<SetmealDish> setmealDishes;

    /** 分类名称 */
    private String categoryName;
}
